package com.blb.zycommunity.entity.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ColumnWidth(25)                                //列宽
@HeadFontStyle(fontHeightInPoints = 20)         //标题行高
@ContentFontStyle(fontHeightInPoints = 12)      //内容行高
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, fillBackgroundColor = -1) //内容居中，颜色默认
public class SysLogininforExeclWrite implements Serializable {

    @ExcelProperty("访问ID")
    @ApiModelProperty("访问ID")
    @TableId(value = "info_id", type = IdType.AUTO)
    private Long infoId;

    @ExcelProperty("用户账号")
    @ApiModelProperty("用户账号")
    private String userName;

    @ExcelProperty("登录IP地址")
    @ApiModelProperty("登录IP地址")
    private String ipaddr;

    @ExcelProperty("登录地点")
    @ApiModelProperty("登录地点")
    private String loginLocation;

    @ExcelProperty("浏览器类型")
    @ApiModelProperty("浏览器类型")
    private String browser;

    @ExcelProperty("操作系统")
    @ApiModelProperty("操作系统")
    private String os;

    @ExcelProperty("登录状态（0成功 1失败）")
    @ApiModelProperty("登录状态（0成功 1失败）")
    private String status;

    @ExcelProperty("提示消息")
    @ApiModelProperty("提示消息")
    private String msg;

    @ExcelProperty("访问时间")
    @ApiModelProperty("访问时间")
    private LocalDateTime loginTime;
}
